﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Script.Serialization;

namespace TossServerLib
{
    public class TossHandler: IHttpHandler
    {
        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            string action = context.Request.QueryString["action"];
            string input = context.Request.QueryString["input"];
            string output = context.Request.QueryString["output"];
            string text = context.Request.QueryString["text"];
            context.Response.Write(Invoke(action, text, input, output));
        }
        protected virtual string Invoke(string action, string text, string input, string output)
        {
            return "OK";
        }
    }
}
